/**
  * @desc log request method and url
  * @example info: GET /ping
*/

const logger = require('../helper/logger')

const logRequest = (req, res, next) => {
  const { url, method } = req
  logger.info(method, url)
  return next()
}

module.exports = logRequest
